{include file="./public/static/block/admin/head.html"}
{include file="./public/static/block/admin/nav.html"}
<!--/. NAV TOP  -->
{include file="./public/static/block/admin/leftNav.html"}
<!-- /. NAV SIDE  -->
<div id="page-wrapper">
    <div id="page-inner">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-header">
                    用户信息编辑 <small>用于用户信息修改</small>
                </h1>

            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                用户编辑
            </div>
            <div class="panel-body">
            <style type="text/css">
                ul,ol,li{
                    list-style: none;
                }
                tbody tr{
                    border-bottom:1px solid #ccc;

                }
                 tbody tr:hover{
                    background: #E6E6E6;
                 }
                 tbody tr.tr1:hover{
                    background:#fff;
                 }
                 tbody tr th{
                    text-align: center;
                 }
                tbody tr td{
                      padding:10px 0;
                }
                tbody tr td input[type=text]{
                    padding:3px 5px;
                    border:none;
                    outline: none;
                    border:1px solid #ccc;
                }
                tbody tr td input[type=date]{
                    padding:3px 17px 3px 5px;
                    border:none;
                    outline: none;
                    border:1px solid #ccc;
                    line-height: 1;
                }
                tbody tr td ul{
                    overflow: hidden;
                     margin: 0px;
                     padding:0;
                }
                tbody tr td ul li{
                    float: left;

                }
                .bt-big{
                    outline: none;
                    border:none;
                    color:#fff;
                    background: #32C2CD;
                    padding:8px 20px;
                    font-size: 16px;
                }
            </style>
            <form action="{:url('user/edit',['uid'=>$user.uid])}" method="post" enctype="multipart/form-data">
                    <table width="100%" border="0" cellspacing="0" class="table-data form">
                        <tbody>

                            <tr><th>帐号/用户名:</th><td>{$user.uname}</td></tr>
                            <tr><th>*邮箱:</th><td><input type="text" name="mail" value="{$user.mail}" class="input w-300"></td></tr>


                            <tr><th>手机:</th><td><input type="text" name="mobile" value="{$user.mobile}" class="input w-300"></td></tr>
                            <tr><th>生日:</th><td><input type="date" name='birthday' value="{$user.birthday}" class="input w-300"></td></tr>

                            <tr><th>真实姓名:</th><td><input type="text" name="realname" value="{$user.realname}" class="input w-300"></td></tr>
                            <tr><th>邮箱验证:</th><td><ul class="group-list">
                                <li style="width:80px;"><label><input type="radio" name="verify_mail" value="0" {if $user.verify_mail==0}checked="checked"{/if}>未认证</label></li>
                                <li style="width:80px;"><label><input type="radio" name="verify_mail" value="1" {if $user.verify_mail==1}checked="checked"{/if}>已认证</label></li>
                            </ul></td></tr>
                            <tr><th>手机验证:</th><td><ul class="group-list">
                                <li style="width:80px;"><label><input type="radio" name="verify_mobile" value="0" {if $user.verify_mobile==0}checked="checked"{/if}>未认证</label></li>
                                <li style="width:80px;"><label><input type="radio" name="verify_mobile" value="1" {if $user.verify_mobile==1}checked="checked"{/if}>已认证</label></li>
                            </ul></td></tr>
                            <tr><th>积分:</th><td><ul class="group-list">
                                <li style="width:80px;"><label><input type="text" name="point" value="{$user.point}" >点</label></li>
                            </ul></td></tr>
                            <tr><th>会员等级:</th><td><ul class="group-list">
                                <li style="width:80px;"><label>
                                <select name = 'level'>
                                    <option value="0" {if $user.level == "0"}selected=''{/if}>注册会员</option>
                                    <option value="1" {if $user.level == "1"}selected=''{/if}>铜牌会员</option>
                                    <option value="2" {if $user.level == "2"}selected=''{/if}>银牌会员</option>
                                    <option value="3" {if $user.level == "3"}selected=''{/if}>金牌会员</option>
                                    <option value="4" {if $user.level == "4"}selected=''{/if}>钻石会员</option>
                                </select>
                                </label></li>
                                <li style="width:80px;"><label><input type="date" name='leveldateline' value="{:date('Y-m-d',$user.paydate)}" class="input w-300"></label></li>
                            </ul></td></tr>
                            <tr><th>状态:</th><td>
                                <ul class="group-list">
                                    <li style="width:80px;"><label><input type="radio" name="closed" value="0" {if $user.closed==0}checked="checked"{/if}>正常</label></li>
                                    <li style="width:80px;"><label><input type="radio" name="closed" value="1" {if $user.closed==1}checked="checked"{/if}>禁言</label></li>
                                    <li style="width:80px;"><label><input type="radio" name="closed" value="2" {if $user.closed==2}checked="checked"{/if}>锁定</label></li>
                                </ul>
                            </td></tr>

                            <tr><th>头像:</th><td><input type="file" name="u_face" ></td><img src="{$user.u_face|get_img_url}"></tr>
                            <tr class="tr1"><th class="clear-th-bottom"></th><td class="clear-td-bottom" colspan="10"><input type="submit" class="bt-big" value="提交数据"></td></tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- /. PAGE WRAPPER  -->
{include file="./public/static/block/admin/foot.html"}